﻿namespace SL651Center2.x.Messages
{
    public class Message : IMessage
    {
        public byte[] SerialNumber { get; set; } = Array.Empty<byte>();
        public ushort SerialNum { get; set; }
        public byte[] SendTime { get; set; } = Array.Empty<byte>();
        public string SendTimeStr { get; set; } = string.Empty;
        /// <summary>
        /// 遥测站地址
        /// </summary>
        public byte[] TelemetryAddress { get; set; } = Array.Empty<byte>();
        /// <summary>
        /// 遥测站地址的字符串形式
        /// </summary>
        public string TelemetryAddress_str { get; set; } = string.Empty;

        public Message()
        {
            SerialNumber = BitConverter.GetBytes(0);
            SerialNum = 0;
            SendTime = Helper.GetBCDTimeBytes();
            SendTimeStr = Helper.ByteToBCDTime(SendTime);
        }

    }
}
